/*-------------------------------------------------------------------------

***************** Modification History ***********************************
   @doc
   @module dp3201.c - Header file DataPac 3201 communications |
   @end
   
$Log: /SoftPay/SPK2SIM/Source/Include/dp3201.h $ 
 * 
 * 2     2/21/00 2:59p Jim_b4
 * Include file restructuring
 * 
 * 1     7/19/99 5:31p Jim_b4
 * 
 * 1     7/19/99 4:08p Jim_b4
 * 
 * 2     6/09/99 11:18a Monique_b1
 * Change headers and file names for SP 2000
**************************************************************************

   Copyright (C) 1999 by VeriFone, Inc.

   All rights reserved.  No part of this software may be reproduced,
   transmitted, transcribed, stored in a retrieval system, or translated
   into any language or computer language, in any form or by any means,
   electronic, mechanical, magnetic, optical, chemical, manual or otherwise,
   without the prior written permission of VeriFone, Inc.

---------------------------------------------------------------------------*/
#ifndef VSDP3201H_DEFINED
#define VSDP3201H_DEFINED

#include <dpt.h>
#include <comm.h>

typedef struct dp3201_struct
{
	int         h3201;              /* Handle of the Lease Line Port */
	DPT_REC     srDPT;
} DP3201_OBJECT;

int in3201TrapFail(long exception);
int inInit3201Communication (COMM_OBJECT *obCommunication);
int inOpen3201Modem (COMM_OBJECT *obCommunication, int inCPTIndex, VS_BOOL fUnusedParamter);
int inInit3201Modem (COMM_OBJECT *obCommunication);
int inCheck3201Poll (COMM_OBJECT *obCommunication);
int inCheck3201Link (COMM_OBJECT *obCommunication);
int in3201Finish (COMM_OBJECT *obCommunication);
int in3201ReadRespPkt (COMM_OBJECT *obCommunication, char *pchReceiveBuff, int inReceiveSize, int inReceiveTimeout, long lnMessage);
int in3201TxPacket (COMM_OBJECT *obCommunication, char *pchSendBuff, int inSendSize, VS_BOOL fConfirmSend,
															                int inTimeout, long lnMessage);
int in3201CheckException(long exception);
int in3201SetTrap(long *exception);
void vdInitialize3201Comm (COMM_OBJECT *obCommunication);
int inDeInit3201Communication (COMM_OBJECT *obCommunication);
unsigned long power(unsigned int x, unsigned int y);
int hexstr2int(char *str);

#endif

